<?php

if ($var_loginFailure) {
    ?>
        <h3><?= $this->translate('Login Failed')?></h3>
        <div style="color:red"><?=
            $this->translate('Please check that you type the account name and password correctly.')
            ?></div>
    <?
} else {
    ?>
        <h3><?= $this->translate('Login Required')?></h3>
    <?
}
?>
        <p>
            <form name="Login" method="POST" action="<?=$var_webPrefix?>users/login/?path=<?=urlencode($var_fromURL)?>">
                <label>
                    <?= $this->translate('Account:')?>
                    <input type="text" name="login" />
                </label>
                <br/>
                <label>
                    <?= $this->translate('Password:')?>
                    <input type="password" name="password" />
                </label>
                <br/>
                <?= $this->renderTemplate('captcha')?>
                <input type="hidden" name="fromURL" value="<?=urlencode($var_fromURL)?>" />
                <input type="submit" value="<?= $this->translate('Log In')?>" />
            </form>
        </p>
